﻿<%@ Page Title="Registro de Transações" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Log.aspx.cs" Inherits="Follow.Adm.Log" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="Titulo">
        <%: Title %><br />
        <asp:Image ID="imgTitulo" runat="server" ImageUrl="~/images/linhas_17.png" /><br />
        <asp:Label ID="lblMsg" runat="server" Visible="false" />
    </div>
    <br />
    <br />
    <asp:MultiView ID="mvLog" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <div class="pesquisa">        
                Filtrar registros de: <asp:TextBox ID="txtDataInicio" runat="server"/>
                <Juice:Datepicker runat="server" ID="dpkDataInicio" TargetControlID="txtDataInicio" DateFormat="dd/mm/yy"/>
                a <asp:TextBox ID="txtDataFim" runat="server" />
                <Juice:Datepicker runat="server" ID="dpkDataFim" TargetControlID="txtDataFim" DateFormat="dd/mm/yy" />
                <asp:Button ID="btnPesquisa" runat="server" Text="Aplicar Filtro" OnClick="btnPesquisa_Click" CssClass="Botao" />
            </div>
            <asp:GridView ID="gvLog" runat="server" AllowPaging="True" AutoGenerateColumns="False" CssClass="gvLog"
                DataKeyNames="IDTransacao" OnRowCommand="gvLog_RowCommand" Width="765px" BackColor="White"
                BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                GridLines="Vertical" PageSize="100" onpageindexchanging="gvLog_PageIndexChanging">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField HeaderText="Ação" DataField="Acao" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField HeaderText="Funcionalidade" DataField="Funcionalidade" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField HeaderText="Data" DataField="Data" ItemStyle-HorizontalAlign="Center" />
                    <asp:BoundField HeaderText="Usuário" DataField="Usuario" ItemStyle-HorizontalAlign="Center" />
                    <asp:ButtonField ButtonType="image" ImageUrl="~/Images/proposta_detalhe.png" CommandName="visualizar"
                        HeaderText="Comando SQL" ItemStyle-HorizontalAlign="Center" />
                </Columns>
                <FooterStyle BackColor="#CCCC99" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <RowStyle BackColor="#F7F7DE" />
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#FBFBF2" />
                <SortedAscendingHeaderStyle BackColor="#848384" />
                <SortedDescendingCellStyle BackColor="#EAEAD3" />
                <SortedDescendingHeaderStyle BackColor="#575357" />
            </asp:GridView>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <asp:Label ID="lblSubTitulo" runat="server" Text="Comando SQL" /><br />
            <asp:HiddenField ID="hdnId" runat="server" />
            <asp:Label ID="lblData" runat="server" Text="Data da Transcação: " Font-Bold="True"/>
            <asp:TextBox ID="txtData" runat="server" /><br />
            <asp:Label ID="lblUsuario" runat="server" Text="Usuário: " Font-Bold="True"/>
            <asp:TextBox ID="txtUsuario" runat="server" /><br />
            <asp:TextBox ID="txtDescricao" runat="server" Height="300px" ReadOnly="True" 
                TextMode="MultiLine" Width="700px" /><br />
            <br />
            <asp:Button ID="btnVoltar" runat="server" CssClass="Botao" Text="Voltar"
                onclick="btnVoltar_Click" />
        </asp:View>
    </asp:MultiView>

    
</asp:Content>
